package com.eye.catcher.service.generate;

import com.eye.catcher.entity.TSysDaUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.eye.catcher.system.user.param.UserLoginInfo;
import com.eye.catcher.system.user.param.UserLoginRequst;
import com.eye.catcher.system.user.param.UserLoginResponse;
import com.eye.catcher.system.user.param.UserPage;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author huzhiwei
 * @since 2022-02-08
 */
public interface ITSysDaUserService extends IService<TSysDaUser> {

    public abstract UserLoginResponse login(UserLoginRequst requst);

    public abstract UserLoginInfo getUserInfoById(String userId, String getUserInfoType);

    public abstract void addUser(TSysDaUser user,String userId);

    public abstract void editUser(TSysDaUser user,String userId);

    public abstract void deleteUserByIds(String userIds);

    public abstract Object getPageUserList(UserPage build);

    public abstract void updateStausByIds(String ids);

    public abstract void editUserPassword(String userIds,String password,String userId);

    public abstract String exportUserTemplate(HttpServletRequest request, HttpServletResponse response) throws FileNotFoundException;

    String uploadUserTemplate(MultipartFile file,String userId) throws IOException;
}
